tests/libtest: Factor out user xattr detection
authorColin Walters <walters@verbum.org>
Mon, 18 Sep 2017 17:58:54 +0000 (13:58 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 21 Sep 2017 13:21:59 +0000 (13:21 +0000)
commit7a8511e0ca9c4e2441077ad0f2872c35a199eebe
tree1829b6f1a406cf2b1b56428e895a4a964f4ad4ca
parent74cf3594eed955847b7a16a7e8a775ba69a47617
tests/libtest: Factor out user xattr detection

Make the equivalent of a `GOnce` or Rust `lazy_static!` detecting this and share
it between the two callers.

Prep for a future similar patch for strace fault injection.

Closes: #1186
Approved by: jlebon
tests/libtest.sh